package com.liangzhong.model.tradeCenter
{
	import com.common.utils.Debug;
	import com.liangzhong.model.AppData;

	/**
	 * 竞拍球员 
	 * @author Administrator
	 * 
	 */	
	public class AuctionPlayerVo
	{
		public function AuctionPlayerVo()
		{
		}
		/**
		 * 记录id (int) 
		 */
		public var id:int;
		/**
		 * 球员id (int) 
		 */
		public var pid:int;
		/**
		 * 挂牌球员俱乐部id (int) 
		 */
		public var cid:int;
		/**
		 * 球员位置 (string) 
		 */
		public var place:String;
		/**
		 *竞标价 (int) 
		 */
		public var biddingprice:int; 
		/**
		 *一口价 (int) 
		 */
		public var fixedprice:int; 
		/**
		 *竞标结束时间 (int) 
		 */
		public var etime:Number; 
		/**
		 *竞标俱乐部id (int) 
		 */
		public var bidder:int;
		/**
		 *挂牌球员俱乐部名称 (int) 
		 */
		public var cname:String;
		/**
		 *竞标俱乐部名称 (string) 
		 */
		public var bname:String; 
		/**
		 *球员名称 (string) 
		 */
		public var pname:String;
		/**
		 *球员等级 (int) 
		 */
		public var grade:int; 
		/**
		 *综合能力 (int) 
		 */
		public var abiliy:int;
		/**
		 *球员头像 (string) 
		 */
		public var headurl2:String; 
		/**
		 *进攻 
		 */
		public var s1:int;
		/**
		 *组织 
		 */
		public var s2:int;
		/**
		 *防守 
		 */
		public var s3:int;
		/**
		 *天赋 
		 */
		public var s4:int;
		/**
		 *身体 
		 */
		public var s5:int;
		/**
		 *守门  
		 */
		public var s6:int;
		/**
		 *专注 (int) 
		 */
		public var s7:int;
		/**
		 *潜力 (int) 
		 */
		public var s8:int;
		public var sid:int;
		/**
		 * 搜索名字的首个位置 
		 */
		public var search:int;
		
		/**
		 *解析数据 
		 * @param $obj
		 * 
		 */
		public function analysisData($obj:Object):void
		{
			for(var str:String in $obj)
			{
				this[str] = $obj[str];
			}
			/*if(biddingprice >= fixedprice && fixedprice != 0)
				biddingprice = fixedprice;
			var goodVo:ShopPlayerVo = AppData.getInstance().shopDataManager.getPlayerByOtherId(sid);
			if(goodVo == null)return;
			pname = goodVo.name
			headurl2 = goodVo.headurl1;
			place = goodVo.place;*/
		}
		private function set p_info($obj:Object):void
		{
			for(var str:String in $obj)
			{
				if(this.hasOwnProperty(str))
					this[str] = $obj[str];
			}
		}
		
		/**
		 * 搜索位置 
		 * @param $str
		 * 
		 */
		public function searchPlacer($str:String):void
		{
			if($str == null)return;
			search = pname.search($str);
//			Debug.echo("位置--->"+ search);
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	}
}